package com.canaan.business.domain.basic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.canaan.common.annotation.Excel;
import com.canaan.common.core.domain.BaseEntity;
import com.canaan.common.annotation.TableName;

import java.util.List;

/**
 * 物料质检相关配置对象 wms_product_quality_config
 *
 * @author ruoyi
 * @date 2023-07-07
 */
@ApiModel(description = "wms_product_quality_config")
@TableName("wms_product_quality_config")
public class ProductQualityConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 编码 */
    @Excel(name = "编码")
    @ApiModelProperty("编码")
    private String no;

    /** 物料编码 */
    @Excel(name = "物料编码")
    @ApiModelProperty("物料编码")
    private String productNo;

    /** 质检项为空是否默认合格(0否，1是) */
    @Excel(name = "质检项为空是否默认合格(0否，1是)")
    @ApiModelProperty("质检项为空是否默认合格(0否，1是)")
    private Long whetherPass;

    /** 是否不入库待检仓（0否，1是） */
    @ApiModelProperty("是否不入库待检仓（0否，1是）")
    private Long whetherWaitStock;

    /** 库存超期期限（天） */
    @ApiModelProperty("库存超期期限（天）")
    private Integer overduePeriod;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty("${comment}")
    private Long sort;

    /** $column.columnComment */
    @ApiModelProperty("${comment}")
    private String delFlag;

    /** 物料编码列表 */
    @ApiModelProperty("物料编码列表")
    private List<String> productNos;

    public Integer getOverduePeriod() {
        return overduePeriod;
    }

    public void setOverduePeriod(Integer overduePeriod) {
        this.overduePeriod = overduePeriod;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNo(String no)
    {
        this.no = no;
    }

    public String getNo()
    {
        return no;
    }
    public void setProductNo(String productNo)
    {
        this.productNo = productNo;
    }

    public String getProductNo()
    {
        return productNo;
    }
    public void setWhetherPass(Long whetherPass)
    {
        this.whetherPass = whetherPass;
    }

    public Long getWhetherPass()
    {
        return whetherPass;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public List<String> getProductNos() {
        return productNos;
    }

    public void setProductNos(List<String> productNos) {
        this.productNos = productNos;
    }

    public Long getWhetherWaitStock() {
        return whetherWaitStock;
    }

    public void setWhetherWaitStock(Long whetherWaitStock) {
        this.whetherWaitStock = whetherWaitStock;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("productNo", getProductNo())
            .append("whetherPass", getWhetherPass())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("sort", getSort())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
